package com.nbsaas.boot.order.rest.convert;

import com.nbsaas.boot.order.data.entity.Order;
import com.nbsaas.boot.order.api.domain.simple.OrderSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 订单-列表对象转换器
*/

public class OrderSimpleConvert implements Converter<OrderSimple, Order> {




@Override
public OrderSimple convert(Order source) {
    OrderSimple result = new OrderSimple();

                result.setSourceId(source.getSourceId());
                result.setOrderType(source.getOrderType());
                result.setDeliveryTime(source.getDeliveryTime());
                result.setPayTime(source.getPayTime());
                result.setOrderStatus(source.getOrderStatus());
                result.setDiscountAmount(source.getDiscountAmount());
                result.setRemark(source.getRemark());
                result.setPayAmount(source.getPayAmount());
                result.setInvoiceType(source.getInvoiceType());
                result.setSellerMessage(source.getSellerMessage());
                result.setShopId(source.getShopId());
                result.setId(source.getId());
                result.setInvoiceTitle(source.getInvoiceTitle());
                result.setLastDate(source.getLastDate());
                result.setInvoiceContent(source.getInvoiceContent());
                result.setOrderNo(source.getOrderNo());
                result.setFreightAmount(source.getFreightAmount());
                result.setRefundTime(source.getRefundTime());
                result.setUserId(source.getUserId());
                result.setAddDate(source.getAddDate());
                result.setReceiveTime(source.getReceiveTime());
                result.setTotalAmount(source.getTotalAmount());
                result.setBuyerMessage(source.getBuyerMessage());
                result.setCancelTime(source.getCancelTime());
                result.setSourceType(source.getSourceType());
                result.setTaxAmount(source.getTaxAmount());
                result.setPayStatus(source.getPayStatus());
                result.setDeliveryStatus(source.getDeliveryStatus());


    return result;
}

}